package 文件字节输出流;

import java.io.FileInputStream;
import java.io.IOException;

public class FileInputStreamTest02 {
    public static void main(String[] args) {
        FileInputStream fis2 = null;
        try {
            fis2 = new FileInputStream("E:/temp.txt");
            int readData2;
            while ((readData2 = fis2.read()) != -1) {
                System.out.println(readData2);
            }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            if (fis2 != null) {
                try {
                    fis2.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
